import {lazy} from "react" 
import My from '../page1/my'
import Canima from '../page1/canima'
import Show from '../page1/show'
import Video from '../page1/video'
import All from "../page1/all"
import Login from "../page1/login"
import Bj from "../page1/bj"
import Swiper from "../page1/swiper1"
//1.
import Detail from '../page1/detail'
let RouterList = [
    {
        path:"/my",
        component:My,
        shouwei:true
    },
    {
        path:"/login",
        component:Login
    },
    {
       path:"/all",
       component:All,
       children:[
           {
               path:"/all/canima",
               component:Canima,
               children:[
                   {
                       path:"/all/canima/bj",
                       component:Bj
                   }
               ]
           },
            {
            path:"/all/show",
            component:Show
            },
            {
                path:"/all/video",
                component:Video
            },
            {
                from:"/all",
                to:"/all/canima"
            }
       ]
    },
    {
       path:"/detail",
       component:lazy(()=>import("../page1/detail"))// 2.路由懒加载
       //component:Detail
    },
    {
        path:"/shangxia",
        component:lazy(()=>import("../page1/onpull"))// 2.路由懒加载
    },
    {
        path:"/swiper",
        //component:Swiper
         component:lazy(()=>import("../page1/swiper1"))// 2.路由懒加载
    },
    {
        from: "/",
        to:"/all"
    }
]
export default RouterList